//
//  UIScrollView+MJ.m
//  WuFamily
//
//  Created by xiaowuxiaowu on 15/6/17.
//  Copyright (c) 2015年 xiaowuxiaowu. All rights reserved.
//

#import "UIScrollView+MJ.h"

@implementation UIScrollView (MJ)

-(void)hzxBeginRefreshing
{
    
    //#warning 自动刷新(一进入程序就下拉刷新)
    [self.header beginRefreshing];
}
- (void)hzxAddLegendHeaderWithRefreshingBlock:(void (^)())block{
    self.header = [MJRefreshNormalHeader headerWithRefreshingBlock:block];
}
- (void)hzxAddLegendFooterWithRefreshingBlock:(void (^)())block{
    self.footer = [MJRefreshAutoNormalFooter footerWithRefreshingBlock:block];
  //  [self addLegendFooterWithRefreshingBlock:block];
}

- (void)hzxHiddenFooter:(BOOL)hide  //隐藏footer
{
    self.footer.hidden = hide;
    
}

-(void)hzxHeaderEndRefreshing //结束head
{
    [self.header endRefreshing];
}
-(void)hzxFooterEndRefreshing //结束footer
{
    [self.footer endRefreshing];
    
}

-(void)hzxNoticeNoMoreData{  //没有数据显示出啦u
    [self.footer noticeNoMoreData];
}

@end
